export const formatMember = member => ({
  id: member.user.id,
  nickname: member.user.nickname,
  avatar: member.user.avatar,

  level: member.role,

  created_at: member.created_at,
  updated_at: member.created_at,
});

export const formatMembers = members => members.map(i => formatMember(i));
